<aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <div class="slimScrollDiv" style="position: relative; overflow: hidden; width: auto; height: 539px;"><section class="sidebar" style="height: 539px; overflow: hidden; width: auto;">
          <!-- Sidebar user panel -->
          <!-- search form -->
          <!-- /.search form -->
          <!-- sidebar menu: : style can be found in sidebar.less -->
           <ul>
            [#if resources??]
                [#list resources as resource]
                [#-- 数据采集系统  --]
                [#if resource.code?? && resource.code=="rvdata" && resource.childResources??]
                    [#list resource.childResources as childresouce1] [#--系统菜单--]
                         [#if childresouce1.childResources??] 
                         [#if topResource?? && topResource.id==childresouce1.id]
                             [#list childresouce1.childResources as childresouce2] 
                                 <li class="first_data" id="menu_${childresouce2.id}">
                                    <a [#if (currentResource.id == childresouce2.id) || (currentResource.parent.id == childresouce2.id)]class="current"[/#if] href="${base}${childresouce2.entry}?module=${childresouce2.id}">
                                    ${childresouce2.name}
                                    </a>
                                 </li>
                                 [#if (childresouce2.childResources)?? && (childresouce2.childResources?size>0) ] 
                                     <li class="second_data"><ul>
                                     [#list childresouce2.childResources as childresouce3]
                                        
                                        <li class="third_data">
                                        <a [#if currentResource.id == childresouce3.id]class="arrow_up"[/#if] href="${base}${childresouce3.entry}?module=${childresouce3.id}">
                                        ${childresouce3.name}
                                        </a>
                                        </li>
                                     [/#list]
                                     </ul></li>
                                 [#elseif childresouce2.code?? && childresouce2.code=="rvdata:pricedata:rubberSpots"]
                      [#--             [@m.spotsCategoryLeftMenu resource=childresouce2/]  --] 
                                 [/#if]
                             [/#list]
                         [/#if]
                         [/#if] 
                    [/#list]
                [#elseif resource.code?? && resource.code=="rvcommerce" && resource.childResources??]
                    [#list resource.childResources as childresouce1] [#--系统菜单--]
                         [#if childresouce1.childResources??] 
                         [#if topResource?? && topResource.id==childresouce1.id]
                             [#list childresouce1.childResources as childresouce2] 
                                 <li class="first_data" id="menu_${childresouce2.id}">
                                    <a [#if (currentResource.id == childresouce2.id) || (currentResource.parent.id == childresouce2.id)]class="current"[/#if] href="${base}${childresouce2.entry}?module=${childresouce2.id}">
                                    ${childresouce2.name}
                                    </a>
                                 </li>
                                 [#if (childresouce2.childResources)?? && (childresouce2.childResources?size>0) ] 
                                     <li class="second_data"><ul>
                                     [#list childresouce2.childResources as childresouce3]
                                        
                                        <li class="third_data">
                                        <a [#if currentResource.id == childresouce3.id]class="arrow_up"[/#if] href="${base}${childresouce3.entry}?module=${childresouce3.id}">
                                        ${childresouce3.name}
                                        </a>
                                        </li>
                                     [/#list]
                                     </ul></li>
                                 
                                 [/#if]
                             [/#list]
                         [/#if]
                         [/#if] 
                    [/#list]    
                [#elseif (resource.code)?? && resource.code=="system"  && resource.childResources??]
                    [#if (topResource?? && (topResource.parent)?? && topResource.parent.code=="system") || ( (currentResource.code)?? &&currentResource.code=="system")]
                    [#list resource.childResources as childresouce2] 
                         <li class="first_data">
                            <a [#if currentResource?? && currentResource.id == childresouce2.id]class="current"[/#if] href="${base}${childresouce2.entry}?module=${childresouce2.id}">${childresouce2.name}</a>
                         </li>
                    [/#list]
                    [/#if]
                [/#if]
                [/#list]
            [/#if]
            
        </ul>
        </section><div class="slimScrollBar" style="background: rgba(0, 0, 0, 0.2) none repeat scroll 0% 0%; width: 3px; position: absolute; top: 0px; opacity: 0.4; display: block; border-radius: 7px; z-index: 99; right: 1px; height: 297.665px;"></div><div class="slimScrollRail" style="width: 3px; height: 100%; position: absolute; top: 0px; display: none; border-radius: 7px; background: rgb(51, 51, 51) none repeat scroll 0% 0%; opacity: 0.2; z-index: 90; right: 1px;"></div></div>
        <!-- /.sidebar -->
      </aside>
<script>
  if($("div.menu ul li").length ==0){
    $("div.menu ul").append("<li>&nbsp;</li><li style='padding-left:5px'><img src='${base}/images/date_03.png' width='200'></li>")
  }
</script>